﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using hachiModel;
public partial class Search : System.Web.UI.Page
{
    Hachi.Controllers.CategoriesController cctr = new Hachi.Controllers.CategoriesController();
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            string lang = Session["Lang"] == null ? hachiCookies.getCookieValue("Lang") : Session["Lang"].ToString();
            string key = Request.QueryString["q"].Replace("+", " ");

            lblPageTitle.Text =
            lblCateName.Text = key;

            lblMeta.Text = @"<meta itemprop='name' content='"+key+"'>" +
                "<meta itemprop='description' content='"+key+"'>";
            ltrInitScript.Text = "<script>var searchKey = '"+key+"'; var cCategoryID = " + -99999 + "; $(document).ready(function (){loadAllPage(" + -99999 + ");});</script>";
            

        }
        catch (Exception ex)
        {
            lblPageTitle.Text = lblCateName.Text = Request.QueryString["q"] + ex.Message;
        }
    }
}